home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 January / Disc 3 / Amethyst.iso / live / etc / makedev.d / inputmouse < prev    next >
Encoding:
Text File  |  2002-08-13  |  275 b   |  12 lines

  1. $numdevs{$name} = 32;
  2. $stddevs{$name} = "^(input/(mice|mouse[0-1]\d*))\$";
  3.  
  4. $generate{$name} = sub {
  5.     mkdir "input", 0755;
  6.     if ($i == 31) {
  7.         &$MkNod ("public", "input/mice", "c", 13, 63 );
  8.     } else {
  9.         &$MkNod ("public", sprintf("input/mouse%d", $i), "c", 13, $i + 32);
  10.     }
  11. }
  12.